import express from 'express'
const router = express.Router()

let content = ''
router.post('/out/postContent', (req, res) => {
    console.log('postContent 接收请求', req.body.content)
    content = req.body.content
    setTimeout(() => {
        res.send('post 成功')
    }, 500)
})

router.get('/out/getContent', (req, res) => {
    console.log('getContent 接收请求')
    setTimeout(() => {
        res.send({
            content
        })
    }, 500)
})
export default router